#pragma once

#include "../NanoIO.h"

class NanoVirtualIO : public NanoIO
{
public:
    NanoVirtualIO( const char* name = "virtual io" );
    virtual ~NanoVirtualIO();
    bool open();
    bool close();
    bool isOpen();
    int read(uint8_t* data , uint16_t len , uint32_t timeout_ms);
    int write(uint8_t* data , uint16_t len , uint32_t timeout_ms);

private:
    char _name[32];
    bool _isOpen;

};

